
%%
%% connect
%% auth
%% ...
%% delete

-record(connection, {sock, index, pid, connect_time }).

%% auth -> auth_udp -> 
-record(session, {index, status=auth, tcp=0, udp=0, pid=0, name="unname", last_recv_time, userdata}).

